<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>02正则匹配</title>
	<script>
		var str = 'good good study, day day up'

		str.search(/good/);//=>0

		str.match(/good/g);//
	</script>
</head>
<body>
	
</body>
</html>